export default function report(paramObj, level) {
  let reportUrl = '/api/v1/errors/';
  const paramArray = [];
  for (let key in paramObj) {
    paramArray.push(`${key}=${encodeURIComponent(paramObj[key])}`)
  }

  reportUrl += (reportUrl.includes('?') ? '&' : '?') + paramArray.join('&');
  new Image().src = reportUrl;
  console.log('错误信息成功上报后台');
}
